import { GET_CITY_LIST, GET_IMG_LIST } from "../actionType"
import api from "../../api/index"
export const getCity = () => {
    return (dispatch) => {
        api.getCity().then(res => {
            console.log(res);
            dispatch({
                type: GET_CITY_LIST,
                payload: res.data
            })
        })
    }
}

export const getImgList = () => {
    return (dispatch) => {
        api.getImgList().then(res => {
            dispatch({
                type: GET_IMG_LIST,
                payload: res.body
            })
        })
    }
}